1a0330f912c0aecdac5a394997932e94a618a4aa,src/test/java/org/apache/bcel/ElementValueGenTestCase.java,ElementValueGenTestCase,checkSerialize,#ElementValueGen#ConstantPoolGen#,213

Before Change


            String beforeValue = evgBefore.stringifyValue();
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            DataOutputStream dos = new DataOutputStream(baos);
            evgBefore.dump(dos);
            dos.flush();
            dos.close();
            byte[] bs = baos.toByteArray();
            ByteArrayInputStream bais = new ByteArrayInputStream(bs);
            DataInputStream dis = new DataInputStream(bais);

After Change


			String beforeValue = evgBefore.stringifyValue();
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			try (DataOutputStream dos = new DataOutputStream(baos)) {
				evgBefore.dump(dos);
				dos.flush();
			}
			ElementValueGen evgAfter;